package com.etc.ssm.entity;

import java.io.Serializable;

/**
 * null
 * @TableName tbl_admin
 */
public class Admin implements Serializable {
    /**
     * 管理员编号
     */
    private Integer adminid;

    /**
     * 帐号
     */
    private String adminuser;

    /**
     * 密码
     */
    private String adminpwd;

    /**
     * 管理员名字
     */
    private String adminname;

    /**
     * 加入时间
     */
    private String admindate;

    /**
     * 管理员在线状态
     */
    private Integer adminstate;

    private static final long serialVersionUID = 1L;

    /**
     * 管理员编号
     */
    public Integer getAdminid() {
        return adminid;
    }

    /**
     * 管理员编号
     */
    public void setAdminid(Integer adminid) {
        this.adminid = adminid;
    }

    /**
     * 帐号
     */
    public String getAdminuser() {
        return adminuser;
    }

    /**
     * 帐号
     */
    public void setAdminuser(String adminuser) {
        this.adminuser = adminuser;
    }

    /**
     * 密码
     */
    public String getAdminpwd() {
        return adminpwd;
    }

    /**
     * 密码
     */
    public void setAdminpwd(String adminpwd) {
        this.adminpwd = adminpwd;
    }

    /**
     * 管理员名字
     */
    public String getAdminname() {
        return adminname;
    }

    /**
     * 管理员名字
     */
    public void setAdminname(String adminname) {
        this.adminname = adminname;
    }

    /**
     * 加入时间
     */
    public String getAdmindate() {
        return admindate;
    }

    /**
     * 加入时间
     */
    public void setAdmindate(String admindate) {
        this.admindate = admindate;
    }

    /**
     * 管理员在线状态
     */
    public Integer getAdminstate() {
        return adminstate;
    }

    /**
     * 管理员在线状态
     */
    public void setAdminstate(Integer adminstate) {
        this.adminstate = adminstate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Admin other = (Admin) that;
        return (this.getAdminid() == null ? other.getAdminid() == null : this.getAdminid().equals(other.getAdminid()))
            && (this.getAdminuser() == null ? other.getAdminuser() == null : this.getAdminuser().equals(other.getAdminuser()))
            && (this.getAdminpwd() == null ? other.getAdminpwd() == null : this.getAdminpwd().equals(other.getAdminpwd()))
            && (this.getAdminname() == null ? other.getAdminname() == null : this.getAdminname().equals(other.getAdminname()))
            && (this.getAdmindate() == null ? other.getAdmindate() == null : this.getAdmindate().equals(other.getAdmindate()))
            && (this.getAdminstate() == null ? other.getAdminstate() == null : this.getAdminstate().equals(other.getAdminstate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAdminid() == null) ? 0 : getAdminid().hashCode());
        result = prime * result + ((getAdminuser() == null) ? 0 : getAdminuser().hashCode());
        result = prime * result + ((getAdminpwd() == null) ? 0 : getAdminpwd().hashCode());
        result = prime * result + ((getAdminname() == null) ? 0 : getAdminname().hashCode());
        result = prime * result + ((getAdmindate() == null) ? 0 : getAdmindate().hashCode());
        result = prime * result + ((getAdminstate() == null) ? 0 : getAdminstate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", adminid=").append(adminid);
        sb.append(", adminuser=").append(adminuser);
        sb.append(", adminpwd=").append(adminpwd);
        sb.append(", adminname=").append(adminname);
        sb.append(", admindate=").append(admindate);
        sb.append(", adminstate=").append(adminstate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}